﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Jzy.Workflow.Snap;

namespace Jzy.Workflow.Form
{
    public partial class FlowFormInfo
    {
        public FlowFormInfo()
        {
            GetSnapInfo = id => null;
        }

        public Func<object, FlowSnapInfo> GetSnapInfo;
        private FlowSnapInfo _snapInfo;
        public FlowSnapInfo SnapInfo
        {
            get
            {
                if (_snapInfo == null)
                {
                    _snapInfo = GetSnapInfo(this.ID);
                }
                return _snapInfo;
            }
            set
            {
                _snapInfo = value;
            }
        }

        /// <summary>
        /// 表单在流转过程中当前停流的节点，如果支持多分支，有可能会出现多个节点
        /// </summary>
        public string CurrentNodeName
        {
            get;
            set;
        }

    }
}
